<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>${plugin.name} - PyHMon Web Interface</title>
</head>
<body>
    <h2>Node: ${plugin.nodes.name}, Plugin: ${plugin.name}</h2>
    <form action="save_plugin" method="post">
	<input type="hidden" name="plugid" value="${plugin.plugin_id}" />
	<input type="hidden" name="nodeid" value="${plugin.nodes.node_id}" />
	<div py:if="plugin.snmp_oid not in ['', None]">
	SNMP OID: <input type="text" name="snmp_oid" value="${plugin.snmp_oid}" /><br />
	SNMP community: <input type="text" name="snmp_community" value = "${plugin.snmp_community}" /></div>
	Delay: <input type="text" name="delay" value="${plugin.delay}" /><br />
	Title: <input type="text" name="title" value="${plugin.title}" /><br />
	Inactive? <input type="checkbox" py:attrs="{'checked':'yes'} if plugin.status  else {}" name="status" value="1" />
	<br /><input type="submit" name="submit" value="Save" />
    </form>
</body>
</html>
